package com.hongyi.common.framework.constant;

/**
 * 通用常量信息
 *
 * @author DingHao
 */
public class Constants {

    /**
     * 通用成功标识
     */
    public static final String SUCCESS = "0";

    /**
     * 通用失败标识
     */
    public static final String FAIL = "1";

    /**
     * 逻辑删除"是"
     */
    public static final String DELETE_YES = "1";

    /**
     * 逻辑删除"否"
     */
    public static final String DELETE_NO = "0";

    /**
     * UTF-8 字符集
     */
    public static final String UTF8 = "UTF-8";

    /**
     * GBK 字符集
     */
    public static final String GBK = "GBK";

    /**
     * http请求
     */
    public static final String HTTP = "http://";

    /**
     * https请求
     */
    public static final String HTTPS = "https://";

    /**
     * www主域
     */
    public static final String WWW = "www.";

    /**
     * 自动识别json对象白名单配置（仅允许解析的包名，范围越小越安全）
     */
    public static final String[] JSON_WHITELIST_STR = { "org.springframework", "com.hongyi" };

    /**
     * 超级管理员ID
     */
    public static final Long ADMIN_ID = 1L;

    /**
     * 系统用户类型
     */
    public static final String SYSTEM_USER = "sys_user";

    /**
     * 网络用户类型
     */
    public static final String NETWORK_USER = "net_user";

    /**
     * 正常
     */
    public static final String OK = "0";

    /**
     * 停用
     */
    public static final String DISABLE = "1";

    /**
     * 登录成功
     */
    public static final String LOGIN_SUCCESS = "Success";

    /**
     * 注销
     */
    public static final String LOGOUT = "Logout";

    /**
     * 登录失败
     */
    public static final String LOGIN_FAIL = "Error";

    /**
     * 资源映射路径 前缀
     */
    public static final String RESOURCE_PREFIX = "/profile";

    /**
     * 通用"是"
     */
    public static final String YES = "Y";

    /**
     * 通用"否"
     */
    public static final String NO = "N";

    /**
     * 未读
     */
    public static final String UN_READ = "0";

    /**
     * 已读
     */
    public static final String READ = "1";


}
